// Copyright 2021 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ------------------------------------------------------------------
// Modification history:
// feature: Code style modification
// ------------------------------------------------------------------

#ifndef INCLUDE_EDDS_DDS_BUILTIN_TOPIC_SUBSCRIPTIONBUILTINTOPICDATA_HPP_
#define INCLUDE_EDDS_DDS_BUILTIN_TOPIC_SUBSCRIPTIONBUILTINTOPICDATA_HPP_

#include <edds/dds/builtin/topic/BuiltinTopicKey.hpp>
#include <edds/dds/core/policy/QosPolicies.hpp>

namespace evbs {
namespace edds {
namespace dds {
namespace builtin {

struct SubscriptionBuiltinTopicData {
    //! Builtin topic Key
    BuiltinTopicKey_t key;

    //! Builtin participant topic Key
    BuiltinTopicKey_t participant_key;

    //! Topic name
    std::string topic_name;

    //! Type name
    std::string type_name;

    // DataReader Qos

    //! Durability Qos, implemented in the library.
    DurabilityQosPolicy durability;

    //! Deadline Qos, implemented in the library.
    DeadlineQosPolicy deadline;

    //! Liveliness Qos, implemented in the library.
    LivelinessQosPolicy liveliness;

    //! Reliability Qos, implemented in the library.
    ReliabilityQosPolicy reliability;

    //! Ownership Qos, implemented in the library.
    OwnershipQosPolicy ownership;

    // Subscriber Qos

    //! Partition Qos, implemented in the library.
    PartitionQosPolicy partition;
};

}  // namespace builtin
}  // namespace dds
}  // namespace edds
}  // namespace evbs

#endif  // INCLUDE_EDDS_DDS_BUILTIN_TOPIC_SUBSCRIPTIONBUILTINTOPICDATA_HPP_
